import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.css']
})
export class ListComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

  items=[
    {id:1,name:"第一行"},
    {id:2,name:"第二行"},
    {id:3,name:"第三行"},
    {id:4,name:"第四行"},
  ];
  datas=[
    {id:1,state:"a",name:"第一行"},
    {id:2,state:"b",name:"第二行"},
    {id:3,state:"c",name:"第三行"},
    {id:4,state:"d",name:"第四行"},
  ]
}
